package com.tmt.datatable.model;

import java.util.Comparator;
import java.util.Map;

/**
 * 装配时 map 键排序
 */
public class KeySorter implements Comparator<Map.Entry<String, String[]>> {

    @Override
    public int compare(Map.Entry<String, String[]> o1, Map.Entry<String, String[]> o2) {
        String key1 = o1.getKey();
        String key2 = o2.getKey();
        return key1.compareTo(key2);
    }
}
